package com.spark.lola.constant;

/**
 * 采购单操作
 * @Author: DengYeJun
 * @Date: 2020/4/28 14:40
 */
public class SupOrderAction {
    /**
     * 创建订单操作
     */
    public final static int CREATING = SupOrderStatus.WAIT;
    /**
     * 审核订单,确认发货操作
     */
    public final static int CHECKING = SupOrderStatus.WAIT+1;
    /**
     * 确认收货操作
     */
    public final static int ECEIVING = SupOrderStatus.WAIT_ECEIVING+1;
    /**
     * 确认定价操作
     */
    public final static int PRICING = SupOrderStatus.WAIT_PRICING+1;
    /**
     * 核算金额
     */
    public final static int ADJUSTING= SupOrderStatus.WAIT_ADJUST+1;
    /**
     * 确认结算操作
     */
    public final static int PAYING = SupOrderStatus.WAIT_PAYMENT+1;
    /**
     * 取消操作
     */
    public final static int CANCELING = SupOrderStatus.CANCELED;
    /**
     * 退货操作
     */
    public final static int RETURNING=SupOrderStatus.RETURN;
    /**
     * 部分退货操作
     */
    public final static int PART_RETURNING=SupOrderStatus.PART_RETURN;

    /**
     * 订单回收
     */
    public final static int RECYCLE = SupOrderStatus.DUSTBIN;

    /**
     * 核算审批
     */
    public final static int REPLYING =SupOrderStatus.WAIT_REPLY+1;

    /**
     * 修改订单
     */
    public final static int UPDATE_BASE = -1;
    /**
     * 修改收货信息
     */
    public final static int UPDATE_ECEIVING= -2;
    /**
     * 修改收货信息
     */
    public final static int UPDATE_SHIP= -3;
    /**
     * 订单驳回
     */
    public final static int REJECT= -4;

    public static String getTxt(int status){
        String txt="";
        switch (status){
            case SupOrderAction.CREATING:
                txt = "创建订单";
                break;
            case CHECKING:
                txt = "发货";
                break;
            case ECEIVING:
                txt ="收货";
                break;
            case PRICING:
                txt ="定价";
                break;
            case ADJUSTING:
                txt ="核算";
                break;
            case PAYING:
                txt ="结算";
                break;
            case CANCELING:
                txt ="取消";
                break;
            case RETURNING:
                txt ="退货";
                break;
            case UPDATE_BASE:
                txt ="修改订单";
                break;
            case UPDATE_ECEIVING:
                txt = "修改收货信息";
                break;
            case UPDATE_SHIP:
                txt ="修改发货信息";
                break;
            case REJECT:
                txt ="驳回订单";
                break;
            case  PART_RETURNING:
                txt ="部分退货";
                break;
            case RECYCLE:
                txt ="回收订单";
                break;
            case REPLYING:
                txt ="核算审批";
                break;
            default:
                txt ="未知";
                break;
        }
        return txt;
    }
}
